package cn.jjaw.command.note.command.type;

import java.util.HashMap;
import java.util.Map;

/**
 * 存放全部type处理器
 */
public class TypeHandles {
    static Map<String,TypeHandle> typeHandleMap = new HashMap<>();
    public static void addType(String typeName,TypeHandle typeHandle){
        typeHandleMap.put(typeName,typeHandle);
    }
    public static TypeHandle get(String typeName){
      return   typeHandleMap.get(typeName);
    }
    static {
        addType(String.class.getTypeName(), param -> param);
    }
}
